<?
include 'common/autoload.php';
use \pft\Member\MemberAccount;
$did = $_SESSION['memberID'];
$lvl_limit = array(0,9);
if(!in_array($_SESSION['dtype'], $lvl_limit)) {
    exit('抱歉！您不是供应商身份无法发布通知。点击<a href="javascript:history.go(-1);">返回</a>');
}

$str = "SELECT l.title as lt,l.id FROM  uu_land l  WHERE l.apply_did={$did} and l.status=1";
$GLOBALS['le']->query($str);
$dprods = array();
while($rows = $GLOBALS['le']->fetch_assoc()) {
    $dprods[] = $rows;
}

$mem = new MemberAccount($GLOBALS['le'], $did);
if($_SESSION['dtype']==9) {
    $total = $mem->GetDistorByApplyerId(0, false, true);//统计分销商人数
}
else{
    $total = $mem->GetDistorByApplyerId(0, true);//统计分销商人数
}
$total = $total>0 ? $total : 0;
$fees = $mem->GetFeesCfg();
$sms_fee = $fees['fee_sms']/100;
$page_title = "发布通知 - ";
include 'common/header.html';
include 'common/left.html';
if($_GET['dev']) {
    include TPLPATH."notice_add_dev.html";
} else {
    include TPLPATH."notice_add.html";
}
include 'common/footer.html';
?>